package com.bwie.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 中奖记录表
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "tb_win_record")
public class WinRecord implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * 记录ID
     */
    @TableId(value = "record_id", type = IdType.AUTO)
    private Integer recordId;

    /**
     * 用户ID
     */
    @TableField(value = "user_id")
    private Integer userId;

    /**
     * 用户名
     */
    @TableField(value = "user_name")
    private String userName;

    /**
     * 联系方式
     */
    @TableField(value = "user_mobile")
    private String userMobile;

    /**
     * 抽奖类型;1免费抽奖2积分抽奖3狐狸金抽奖4订单抽奖5邀请抽奖
     */
    @TableField(value = "active_type")
    private Integer activeType;

    /**
     * 中奖类型;0未中奖1已中奖
     */
    @TableField(value = "win_flag")
    private Integer winFlag;

    /**
     * 中奖信息;奖品信息
     */
    @TableField(value = "rule_id")
    private Integer ruleId;

    /**
     * 备注
     */
    @TableField(value = "record_desc")
    private String recordDesc;

    /**
     * 创建人
     */
    @TableField(value = "create_by")
    private String createBy;

    /**
     * 创建时间
     */
    @TableField(value = "create_time")
    private Date createTime;

    /**
     * 更新人
     */
    @TableField(value = "update_by")
    private String updateBy;

    /**
     * 更新时间
     */
    @TableField(value = "update_time")
    private Date updateTime;

    /**
     * 活动ID
     */
    @TableField(value = "active_id")
    private Integer activeId;

    @TableField(exist = false)
    private String activeName;

    @TableField(exist = false)
    private String winName;

    @TableField(exist = false)
    private String winProd;
}